package edu.pku.sei.transformation.visitor;

import java.util.HashMap;
import java.util.Map;

public class MTContext
{
	private Map<String, Object> variables = new HashMap<String, Object>();
	
	public Map<String, Object> getVariables()
	{
		return variables;
	}
	
	public void setVariable(String name, Object value)
	{
		variables.put(name, value);
	}
	
	public Object getVariable(String name)
	{
		return variables.get(name);
	}
	
	public void removeVariable(String name)
	{
		variables.remove(name);
	}

}
